window: don't schedule a display of mnemonics if window has no modifier
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 2 Apr 2013 20:36:30 +0000 (16:36 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 2 Apr 2013 21:39:44 +0000 (17:39 -0400)
commita60ddd9a02e8eafcaed5d1b539f13e511b70a55e
tree4571bcf317e448ce5c85e3dcd8b5c2994108f9cf
parentcfb1e56561a3fdf034f7059300c94fcac8d0de19
window: don't schedule a display of mnemonics if window has no modifier

When the window has no mnemonics modifier set, as in the case of a
GtkMenu, never schedule a display of mnemonics on focus-in.

Previously, for those windows, the GdkModifierType mask fetched from the
device would typically have been zero, leading to the

mnemonic_modifier == (mask & gtk_accelerator_get_default_mod_mask ())

check to succeed, so we would always trigger a display for popup menus.

https://bugzilla.gnome.org/show_bug.cgi?id=697144
gtk/gtkwindow.c